// 大屏适配组件
import ScreenAdapter from "./ScreenAdapter/index.vue";

// 其他现有组件
import Echarts from "./Echarts.vue";
import EchartsVue3 from "./EchartsVue3.vue";
import MainHeader from "./MainHeader.vue";
import TreeData from "./treeData.vue";
import DataCard from "./DataCard.vue";

// 组件列表
const components = {
  ScreenAdapter,
  Echarts,
  EchartsVue3,
  MainHeader,
  TreeData,
  DataCard,
};

// 按需引入
export { ScreenAdapter, Echarts, EchartsVue3, MainHeader, TreeData, DataCard };

// 全局注册插件
export default {
  install(Vue) {
    Object.keys(components).forEach((name) => {
      Vue.component(name, components[name]);
    });
  },
};

// 工具函数导出 - 从ScreenAdapter模块导出
export {
  ScreenAdapter as ScreenAdapterClass,
  screenUtils,
} from "./ScreenAdapter/utils/screenAdapter.js";
